<?php /* Smarty version 2.6.18, created on 2016-12-16 11:13:29
         compiled from image/open.tpl */ ?>
<style type="text/css">
.piclist {
	width:100px;
	height:100px;
	float:left;
	margin:10px 0 0 10px;
	overflow:hidden;
	border:1px solid #aaa;
}

.head-dark-box {
	margin:2px;
	height:30px;
	line-height:30px;
	background:#E5E5E5 url(<?php echo $this->_tpl_vars['res']; ?>
/images/menu.gif);
}

.tit {
	text-indent:40px;
	background:url(<?php echo $this->_tpl_vars['res']; ?>
/images/titletb.gif) no-repeat 1.5em center;
}
.clo {
	width:30;
	float:right;
	padding-right:10px;
	text-align:right;
	cursor:pointer;
}

.light-row {
	background-color:#FAFAFA;
}
.open {
	width:580px;
	background:#222;
	position:absolute;
	top:120px;
	left:250px;
}
</style>	
<div id="glist">
	<div class="head-dark-box" style="float:left;width:100%">
		<div class="tit" style="width:80%;float:left" >选择图片（提示：单击图片即可插入，单击名称查看图片信息。）
		</div>
		<div class="clo" onclick="closewin()"><img src="<?php echo $this->_tpl_vars['res']; ?>
/images/tipe.gif" ></div>
	</div>
	<div class="light-row" style="float:left;width:580px !important;width:567px;padding:5px 0px 5px 0px">
		&nbsp;&nbsp;请从相册中选择需要编辑的图片&nbsp;&nbsp; <?php echo $this->_tpl_vars['select']; ?>
 &nbsp;&nbsp; 
	</div> 

     <div style="width:100%;">
    	<?php unset($this->_sections['tu']);
$this->_sections['tu']['name'] = 'tu';
$this->_sections['tu']['loop'] = is_array($_loop=$this->_tpl_vars['images']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['tu']['show'] = true;
$this->_sections['tu']['max'] = $this->_sections['tu']['loop'];
$this->_sections['tu']['step'] = 1;
$this->_sections['tu']['start'] = $this->_sections['tu']['step'] > 0 ? 0 : $this->_sections['tu']['loop']-1;
if ($this->_sections['tu']['show']) {
    $this->_sections['tu']['total'] = $this->_sections['tu']['loop'];
    if ($this->_sections['tu']['total'] == 0)
        $this->_sections['tu']['show'] = false;
} else
    $this->_sections['tu']['total'] = 0;
if ($this->_sections['tu']['show']):

            for ($this->_sections['tu']['index'] = $this->_sections['tu']['start'], $this->_sections['tu']['iteration'] = 1;
                 $this->_sections['tu']['iteration'] <= $this->_sections['tu']['total'];
                 $this->_sections['tu']['index'] += $this->_sections['tu']['step'], $this->_sections['tu']['iteration']++):
$this->_sections['tu']['rownum'] = $this->_sections['tu']['iteration'];
$this->_sections['tu']['index_prev'] = $this->_sections['tu']['index'] - $this->_sections['tu']['step'];
$this->_sections['tu']['index_next'] = $this->_sections['tu']['index'] + $this->_sections['tu']['step'];
$this->_sections['tu']['first']      = ($this->_sections['tu']['iteration'] == 1);
$this->_sections['tu']['last']       = ($this->_sections['tu']['iteration'] == $this->_sections['tu']['total']);
?>
		<div  class="piclist">				
		<a href="javascript:setImage(<?php echo $this->_tpl_vars['images'][$this->_sections['tu']['index']]['id']; ?>
,'<?php echo $this->_tpl_vars['public']; ?>
/uploads/<?php echo $this->_tpl_vars['images'][$this->_sections['tu']['index']]['name']; ?>
')">
		<img src="<?php echo $this->_tpl_vars['public']; ?>
/uploads/<?php echo $this->_tpl_vars['images'][$this->_sections['tu']['index']]['name']; ?>
" width="100" height="100"></a>
      	</div>
	 
   	 <?php endfor; else: ?>
		<div style="float:left;text-align:center;color:red;width:100%;marign:20px;background:#ccc">
			该类中没有需要的图片
		</div>
   	 <?php endif; ?>
     </div>
	<div class="light-row" style="float:left;width:580px !important;width:567px;margin-top:10px;padding-bottom:0 !important;padding-bottom:10px;">
		&nbsp;&nbsp;<span style="float:left"><?php echo $this->_tpl_vars['fpage']; ?>
</span>
	</div>
</div>